/*
 * $Id: conf.h,v 1.17 2010/04/05 16:42:24 fabio Exp $
 */

#include <gtk/gtk.h>

enum chrono_s {
    STOP = 0,
    RUNNING = 1,
    PAUSE = 2,
    RESET = 3,
};

typedef struct _ProgressData {
    GtkWidget *window,*pbar,*gtklist,*config_win;
    GList *dlist;
    gint timer,running,p_secs,p_interrupt;
    gboolean activity_mode,visible,showcountdown;
    struct timeval pomodoro,tv,lap,interrupt,previous_lap,offset,initial,now;
    enum chrono_s status;
    gboolean twitter_integration,p_starthidden;
    gchar *twitter_username,*twitter_password,*proxy,*last_message;
} ProgressData;

void str_set(char **dest, char *src);
void str_reset(char **dest, char *src);
int load_options(gpointer data);
void log_message(char *message, ...);
